Shader Data Objects
Labels
-
ASCII
-
Shader
-
Binary
-
shdr
( =
0x73686472
)
Shader UV Boundary TYPES
-
Wrap
-
0x00000000
-
Clamp
-
0x00000001
Constant descriptions
-
Wrap
-
Values outside the valid range of
uv
values are to be wrapped. To wrap a shader effect is to replicate the entire effect across the mapped area.
-
Clamp
-
Values outside the valid range of
uv
values are to be clamped. To clamp a shader effect is to replicate the boundaries of the effect across the portion of the mapped area that lies outside the valid range.
Data Format
ShaderUVBoundaryEnum uBounds
ShaderUVBoundaryEnum vBounds
-
uBounds
-
The value in this field determines whether values in the
u
parametric direction that lie outside the valid range are wrapped or clamped by the parent shader.
-
vBounds
-
The value in this field determines whether values in the
v
parametric direction that lie outside the valid range are wrapped or clamped by the parent shader.
Description
A shader data object is a boundary-handling method specifier that determines how a parent shader handles parametric uv values that are outside the valid range (namely, 0 to 1).
Parent Objects
Any shader. A shader data object always has a parent object.
Example
Container (
CustomShader ( ... )
ShaderData ( Wrap Clamp )
)
© 1997 Apple Computer, Inc.
Previous | QD3D Book | Overview | Chapter Contents | Next |